<?php
include($classes_path.'/class.titleGen.php');
$pageTitle = new titleGenerator();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="content-Type" content="text/html; charset=<?php print(CHARSET); ?>" />
        <meta name="description" content="<?php print($meta_description); ?>" />
        <meta name="keywords" content="<?php print($meta_keywords); ?>" />
        <meta name="robot" content="index,follow" />
        <meta name="refresh" content="300" />
        <meta name="language" content="<?php print($meta_language); ?>" />
        <meta name="revisit-after" content="1" />

        <title><?php print($pageTitle->getTitle($pageid, $page, $apage, $epage, $article).' | '.$site_name); ?></title>
        <base href="http://www.softsaurus.org/" />
        <link rel="canonical" href="http://www.softsaurus.org/<?php print('page/'.$pageid.'/'.$page.'/article/'.$article); ?>" />
        <link href="<?php print($themes_path.'/'.THEME); ?>/styles/style.css" rel="stylesheet" type="text/css" />
        <link rel="icon" type="image/png" href="<?php print($themes_path.'/'.THEME); ?>/images/favicon.ico" />
        <link rel="alternate" title="<?php print($site_name); ?> Mixed RSS feed" type="application/rss+xml" href="http://feeds2.feedburner.com/Softsaurus" />
        <link rel="alternate" title="<?php print($site_name); ?> development changelog Feed" type="application/rss+xml" href="http://feeds.feedburner.com/SoftsaurusDev" />
        <script type="text/javascript" src="<?php print($themes_path.'/'.THEME); ?>/js/defaults.js" charset="utf-8"></script>
        <?php
        switch($pageid) {
            default;
                ?>
        <script type="text/javascript">
            /*defaults*/
            $(document).ready(function(){
                /*colorbox*/
                $("a[rel='lightbox']").colorbox();
                $(".lightbox").colorbox();
                $(".youtube").colorbox({iframe:true,width:640,height:505});
                //$(".iframe").colorbox({width:"80%",height:"80%",iframe:true});
                //$(".modal").colorbox({width:"50%",inline:true,href:"#inline_login"});
                /*prettyComments*/$("textarea").prettyComments({maxHeight:250});
                /*focus/blur*/
                $('input[title="clear"]').focus(function(){$(this).removeClass("idleField").addClass("focusField");if(this.value==this.defaultValue){this.value=""}if(this.value!=this.defaultValue){this.select()}});
                $('input[title="clear"]').blur(function(){$(this).removeClass("focusField").addClass("idleField");if($.trim(this.value)==""){this.value=(this.defaultValue?this.defaultValue:"")}});
                $('.wysiwyg').rte({
                    controls_rte: rte_toolbar,
                    controls_html: html_toolbar,
                    width:600,
                    height:300
                });
            });
        </script>
                <?php
                break;
        }
        ?>

        <!--[if lt IE 7]>
        <script type="text/javascript" src="../js/pngfix.js" defer="defer"></script>
        <![endif]-->
    </head>
    <body>
        <div id="header">
            <a href="../">
                <img id="logo" src="<?php print($themes_path.'/'.THEME); ?>/images/logo.png" alt="Logo <?php print($site_name); ?>" />
            </a>
            <?php include($objects_path.'/mainMenu.obj.php'); ?>
        </div>